package elead.employ.recruit.service;

import elead.employ.recruit.entity.Admin_info;
import elead.employ.recruit.mapper.AdminMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 白清鑫
 * @version 1.0
 * @date 2020/9/1 14:41
 * @describe
 */

@Service
public class AdminService {

    //注入mapper
    @Autowired
    private AdminMapper adminMapper;

    /**
     * 方法功能：实现登录功能
     * 参数列表：封装的Admin_info对象
     * 返回值类型：boolean
     */
    public boolean adminLogin(Admin_info admin){

        List<Admin_info> admin_list = adminMapper.adminLogin(admin);
        if (admin_list!=null){
            return true;
        }
        return false;
    }


}
